<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>document2html: ooxml::Ooxml Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">document2html
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Documents to HTML converter</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classooxml_1_1_ooxml.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pri-static-methods">Static Private Member Functions</a> &#124;
<a href="classooxml_1_1_ooxml-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">ooxml::Ooxml Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Wrapper for Office Open XML (OOXML)  
 <a href="classooxml_1_1_ooxml.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="ooxml_8hpp_source.html">ooxml.hpp</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for ooxml::Ooxml:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classooxml_1_1_ooxml.png" usemap="#ooxml::Ooxml_map" alt=""/>
  <map id="ooxml::Ooxml_map" name="ooxml::Ooxml_map">
<area href="classdocx_1_1_docx.html" title="DOCX files into HTML сonverter. " alt="docx::Docx" shape="rect" coords="0,56,116,80"/>
<area href="classepub_1_1_epub.html" title="EPUB files into HTML сonverter. " alt="epub::Epub" shape="rect" coords="126,56,242,80"/>
<area href="classexcel_1_1_x12_general.html" title="Base class for document components. " alt="excel::X12General" shape="rect" coords="252,56,368,80"/>
<area href="classexcel_1_1_xlsx.html" title="Wrapper for XLSX format. " alt="excel::Xlsx" shape="rect" coords="378,56,494,80"/>
<area href="classodt_1_1_odt.html" title="ODT files into HTML сonverter. " alt="odt::Odt" shape="rect" coords="504,56,620,80"/>
<area href="classexcel_1_1_x12_book.html" title="Excel Workbook data. " alt="excel::X12Book" shape="rect" coords="126,112,242,136"/>
<area href="classexcel_1_1_x12_sheet.html" title="Contains data for one worksheet. " alt="excel::X12Sheet" shape="rect" coords="252,112,368,136"/>
<area href="classexcel_1_1_x12_styles.html" title="Contains style data. " alt="excel::X12Styles" shape="rect" coords="378,112,494,136"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a9ec11b0f271d8034bb1e7e55a33fca62"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classooxml_1_1_ooxml.html#a9ec11b0f271d8034bb1e7e55a33fca62">extractFile</a> (const std::string &amp;zipName, const std::string &amp;fileName, pugi::xml_document &amp;tree)</td></tr>
<tr class="memdesc:a9ec11b0f271d8034bb1e7e55a33fca62"><td class="mdescLeft">&#160;</td><td class="mdescRight">Extract file from archive and put its content into XML-tree.  <a href="#a9ec11b0f271d8034bb1e7e55a33fca62">More...</a><br /></td></tr>
<tr class="separator:a9ec11b0f271d8034bb1e7e55a33fca62"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a31d08786899e686508243b6837cdd7f9"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classooxml_1_1_ooxml.html#a31d08786899e686508243b6837cdd7f9">extractFile</a> (const std::string &amp;zipName, const std::string &amp;fileName, std::string &amp;buffer)</td></tr>
<tr class="memdesc:a31d08786899e686508243b6837cdd7f9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Extract file from archive and put its content into string buffer.  <a href="#a31d08786899e686508243b6837cdd7f9">More...</a><br /></td></tr>
<tr class="separator:a31d08786899e686508243b6837cdd7f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-static-methods"></a>
Static Private Member Functions</h2></td></tr>
<tr class="memitem:a18302919a8a70a1ff486c5394645b3c4"><td class="memItemLeft" align="right" valign="top">static void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classooxml_1_1_ooxml.html#a18302919a8a70a1ff486c5394645b3c4">getFileContent</a> (const std::string &amp;zipName, const std::string &amp;fileName, mz_zip_archive *zipArchive, size_t &amp;size)</td></tr>
<tr class="memdesc:a18302919a8a70a1ff486c5394645b3c4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get zipped file content.  <a href="#a18302919a8a70a1ff486c5394645b3c4">More...</a><br /></td></tr>
<tr class="separator:a18302919a8a70a1ff486c5394645b3c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71f92dfed68c2d29c56a27286f34f1a2"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classooxml_1_1_ooxml.html#a71f92dfed68c2d29c56a27286f34f1a2">clear</a> (mz_zip_archive *zipArchive, void *content)</td></tr>
<tr class="memdesc:a71f92dfed68c2d29c56a27286f34f1a2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Close archive, freeing any resources it was using.  <a href="#a71f92dfed68c2d29c56a27286f34f1a2">More...</a><br /></td></tr>
<tr class="separator:a71f92dfed68c2d29c56a27286f34f1a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Wrapper for Office Open XML (OOXML) </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a71f92dfed68c2d29c56a27286f34f1a2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a71f92dfed68c2d29c56a27286f34f1a2">&#9670;&nbsp;</a></span>clear()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void ooxml::Ooxml::clear </td>
          <td>(</td>
          <td class="paramtype">mz_zip_archive *&#160;</td>
          <td class="paramname"><em>zipArchive</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>content</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Close archive, freeing any resources it was using. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">zipArchive</td><td>Archive handler </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">content</td><td>Extracted file content </td></tr>
  </table>
  </dd>
</dl>
<dl class="section since"><dt>Since</dt><dd>1.1 </dd></dl>

</div>
</div>
<a id="a9ec11b0f271d8034bb1e7e55a33fca62"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9ec11b0f271d8034bb1e7e55a33fca62">&#9670;&nbsp;</a></span>extractFile() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void ooxml::Ooxml::extractFile </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>zipName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>fileName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">pugi::xml_document &amp;&#160;</td>
          <td class="paramname"><em>tree</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Extract file from archive and put its content into XML-tree. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">zipName</td><td>Archive path </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">fileName</td><td>Extracting file name </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">tree</td><td>XML-tree, where you need to put the data from extracted file </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">std::invalid_argument</td><td>Invalid zip file </td></tr>
    <tr><td class="paramname">std::logic_error</td><td>File extracting error </td></tr>
  </table>
  </dd>
</dl>
<dl class="section since"><dt>Since</dt><dd>1.0 </dd></dl>

</div>
</div>
<a id="a31d08786899e686508243b6837cdd7f9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a31d08786899e686508243b6837cdd7f9">&#9670;&nbsp;</a></span>extractFile() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void ooxml::Ooxml::extractFile </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>zipName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>fileName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string &amp;&#160;</td>
          <td class="paramname"><em>buffer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Extract file from archive and put its content into string buffer. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">zipName</td><td>Archive path </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">fileName</td><td>Extracting file name </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">buffer</td><td>String buffer, where you need to put the data from extracted file </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">std::invalid_argument</td><td>Invalid zip file </td></tr>
    <tr><td class="paramname">std::logic_error</td><td>File extracting error </td></tr>
  </table>
  </dd>
</dl>
<dl class="section since"><dt>Since</dt><dd>1.1 </dd></dl>

</div>
</div>
<a id="a18302919a8a70a1ff486c5394645b3c4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a18302919a8a70a1ff486c5394645b3c4">&#9670;&nbsp;</a></span>getFileContent()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void * ooxml::Ooxml::getFileContent </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>zipName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>fileName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">mz_zip_archive *&#160;</td>
          <td class="paramname"><em>zipArchive</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t &amp;&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get zipped file content. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">zipName</td><td>Archive path </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">fileName</td><td>Extracting file name </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">zipArchive</td><td>Archive handler </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">size</td><td>Extracted file size </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>File content </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">std::invalid_argument</td><td>Invalid zip file </td></tr>
    <tr><td class="paramname">std::logic_error</td><td>File extracting error </td></tr>
  </table>
  </dd>
</dl>
<dl class="section since"><dt>Since</dt><dd>1.1 </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>src/libs/fileext/ooxml/<a class="el" href="ooxml_8hpp_source.html">ooxml.hpp</a></li>
<li>src/libs/fileext/ooxml/<a class="el" href="ooxml_8cpp.html">ooxml.cpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespaceooxml.html">ooxml</a></li><li class="navelem"><a class="el" href="classooxml_1_1_ooxml.html">Ooxml</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
